<!DOCTYPE html>
<html>
    <head>
        <#include "../common.ftl">
    </head>
    <body class="childrenBody">
        <form class="layui-form" style="width:80%;">
            <#-- 设置品牌ID的隐藏域 -->
            <input type="hidden" name="brandId" value="${(brand.brandId)!}">

            <input type="hidden" name="brandStateText" value="${(brandStateText)!}">
            <input type="hidden" name="brandPublicityText" value="${(brandPublicityText)!}">



            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">品牌名称</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" lay-verify="required" name="brandName" id="brandName"  value="${(brand.brandName)!}" placeholder="请输入品牌名称">
                </div>
            </div>

            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">品牌状态</label>
                <div class="layui-input-block">
                <select name="brandState" id="brandState" >
                    <option value=""  selected=""  >品牌状态</option>
                    <option value="1"   <#if (brand.brandState=='1')!false >selected="selected"</#if>  >启用</option>
                    <option value="0"   <#if (brand.brandState=='0')!false >selected="selected"</#if>  >禁用</option>
                </select>
                </div>
            </div>





            <div class="layui-form-item layui-row layui-col-xs12">
                <label class="layui-form-label">品牌知名度</label>
                <div class="layui-input-block">
                <select name="brandPublicity" id="brandPublicity">
                    <option value="">品牌知名度</option>
                    <option value="1"  <#if (brand.brandPublicity=='1')!false >selected="selected"</#if> >依托答辩</option>
                    <option value="2" <#if (brand.brandPublicity=='2')!false >selected="selected"</#if> >一般</option>
                    <option value="3" <#if (brand.brandPublicity=='3')!false >selected="selected"</#if> >高</option>
                    <option value="4" <#if (brand.brandPublicity=='4')!false >selected="selected"</#if> >威名远扬</option>
                </select>
            </div>
            </div>



            <br/>
            <div class="layui-form-item layui-row layui-col-xs12">
                <div class="layui-input-block">
                    <button class="layui-btn layui-btn-lg" lay-submit=""  lay-filter="add_updatebrand">确认 </button>
                    <button class="layui-btn layui-btn-lg layui-btn-normal" id="closeBtn">取消</button>
                </div>
            </div>
        </form>
    <script type="text/javascript" src="${ctx}/js/brand/add_update.js"></script>
    </body>
</html>